-- GENERATED SPELL FOR [Drakkari Snake] --


function spell0_29444(pUnit, Event) --@Crippling Poison,n/a--
pUnit:FullCastSpellOnTarget(25809,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29444', 12296, 1)
end

function spell1_29444(pUnit, Event) --@Mind-numbing Poison,n/a--
pUnit:FullCastSpellOnTarget(25810,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29444', 12337, 1)
end

function Sorts_29444(pUnit, Event)
local choix_sorts_29444 = math.random(0, 1)
if choix_sorts_29444 == 0 then
pUnit:RegisterEvent('spell0_29444', 1, 1)
end
if choix_sorts_29444 == 1 then
pUnit:RegisterEvent('spell1_29444', 1, 1)
end
end

function mob29444_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29444', math.random(1500, 3000), 1)
end

function mob29444_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29444_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29444_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29444, 1, 'mob29444_Action')
RegisterUnitEvent(29444, 2, 'mob29444_Leave')
RegisterUnitEvent(29444, 3, 'mob29444_Kill')
RegisterUnitEvent(29444, 4, 'mob29444_Die')
